Cosmetic formatting fixes
authorMatthias Clasen <mclasen@redhat.com>
Wed, 29 Nov 2017 22:06:15 +0000 (17:06 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 29 Nov 2017 22:28:15 +0000 (17:28 -0500)
gtk/gtkwindow.c

index 0ffd0063886b7675263c8a19f5d994658c79b3ef..be04e26bcb1c9985b50e30a4624c1ec3a1c7ed8e 100644 (file)
@@ -4398,15 +4398,17 @@ icon_list_from_theme (GtkWindow   *window,
 {
   GtkWindowPrivate *priv = window->priv;
   GList *list;
+  GtkStyleContext *context;
+  GtkCssValue *value;
   GtkIconTheme *icon_theme;
   GdkTexture *icon;
   GdkPixbuf *pixbuf;
   gint *sizes;
   gint i;
 
-  icon_theme = gtk_css_icon_theme_value_get_icon_theme
-    (_gtk_style_context_peek_property (gtk_widget_get_style_context (GTK_WIDGET (window)),
-                                       GTK_CSS_PROPERTY_ICON_THEME));
+  context = gtk_widget_get_style_context (GTK_WIDGET (window));
+  value = _gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_ICON_THEME);
+  icon_theme = gtk_css_icon_theme_value_get_icon_theme (value);
 
   sizes = gtk_icon_theme_get_icon_sizes (icon_theme, name);
 
@@ -4414,10 +4416,10 @@ icon_list_from_theme (GtkWindow   *window,
   for (i = 0; sizes[i]; i++)
     {
       /* FIXME
-       * We need an EWMH extension to handle scalable icons 
-       * by passing their name to the WM. For now just use a 
+       * We need an EWMH extension to handle scalable icons
+       * by passing their name to the WM. For now just use a
        * fixed size of 48.
-       */ 
+       */
       if (sizes[i] == -1)
         pixbuf = gtk_icon_theme_load_icon_for_scale (icon_theme, name,
                                                     48, priv->scale,
@@ -4428,7 +4430,7 @@ icon_list_from_theme (GtkWindow   *window,
                                                     0, NULL);
       if (pixbuf)
         {
-          icon = gdk_texture_new_for_pixbuf (pixbuf);
+  i       icon = gdk_texture_new_for_pixbuf (pixbuf);
          list = g_list_append (list, icon);
           g_object_unref (pixbuf);
         }